package com.example.controller;

import com.example.pojo.Degree;
import com.example.pojo.JobOption;
import com.example.pojo.Result;
import com.example.service.EmpService;
import com.example.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/report")
public class ReportController {

    @Autowired
    private EmpService empService;
    @Autowired
    private StudentService studentService;
    @GetMapping("/empJoData")
    public Result getEmpJoData(){
        JobOption joData = empService.getEmpJoData();
        return Result.success(joData);
    }
    @GetMapping("/empGenderData")
    public Result getEmpGenderData(){
        List<Map> genderData = empService.getEmpGenderData();
        return Result.success(genderData );
    }
}
